import axios from '@/utils/axios.js'

// 获取全部角色
export const getAllroleList = () => {
  return axios({
    url: 'roles'
  })
}

export const delRight = (roleId, rightId) => {
  return axios({
    url: `roles/${roleId}/rights/${rightId}`,
    method: 'delete'
  })
}
